﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Folder.aspx.cs" Inherits="MyDMS_ExtJS.Folder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server"/>
    <ext:Panel ID="MainPanel" runat="server" EnableBackgroundColor="true"
        ShowBorder="False" ShowHeader="False" Title="MainPanel" Layout="Anchor">
        <Items>
            <ext:Panel ID="ViewPanel" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
                ShowBorder="true" ShowHeader="true" Title="最新档案" AutoHeight="True">
                 <toolbars>
            <ext:Toolbar ID="Toolbar2" Width="150" runat="server">
                <Items>
                    <ext:Button ID="btnAdd" Text="添加" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDel" Text="删除" runat="server" OnClick="btnDel_Click">
                    </ext:Button>
                    <ext:Button ID="btnView" Text="查看" runat="server" OnClick="btnView_Click">
                    </ext:Button>
                    <ext:Button ID="btnPrint" Text="打印" runat="server" OnClick="btnPrint_Click">
                    </ext:Button>
                    <ext:Button ID="btnRefresh" Text="刷新" runat="server" OnClick="btnRefresh_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </toolbars>
                <Items>
                    <ext:Grid ID="gvDocuments" runat="server" EnableCheckBoxSelect="true" 
                        EnableRowNumber="true" ShowHeader="False" AllowPaging="True" 
                        AllowSorting="True" OnPageIndexChange="gvDocuments_PageIndexChange" 
                        OnSort="gvDocuments_Sort" PageSize="10" DataKeyNames="Document_Code">
                        <Columns>
                    <ext:TemplateField Width="30px" SortField="Document_Code" Hidden="True">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Document_Code")%>'></asp:Label>
                        </ItemTemplate>
                    </ext:TemplateField>
                    <ext:TemplateField Width="260px" SortField="Document_Name" HeaderText="名称/备注">
                        <ItemTemplate>
                            <strong style="font-weight: bold">
                                <%#DataBinder.Eval(Container.DataItem, "Document_Name")%></strong>
                            <br />
                            <span>
                                <%#DataBinder.Eval(Container.DataItem, "Document_Desc")%></span>
                        </ItemTemplate>
                    </ext:TemplateField>
                    <ext:BoundField Width="70px" SortField="OwnerName" DataField="OwnerName" HeaderText="负责人"/>
                    <ext:TemplateField Width="160px" SortField="TaskName" HeaderText="小项/分项">
                        <ItemTemplate>
                            <strong style="font-weight: bold">
                                <%#DataBinder.Eval(Container.DataItem, "TaskName")%></strong>
                            <br />
                           <%-- <span>
                                <%#DataBinder.Eval(Container.DataItem, "FolderName")%></span>--%>
                          </ItemTemplate>
                    </ext:TemplateField>
                    
                    <ext:BoundField Width="160px" SortField="SecretLevelName" DataField="SecretLevelName"
                        HeaderText="密级" /> 
                    <ext:BoundField Width="160px" SortField="ShelfLifeName" DataField="ShelfLifeName"
                        HeaderText="保存期限" /> 
                    <ext:BoundField Width="160px" SortField="Updation_Date" DataField="Updation_Date"
                        HeaderText="更新时间" /> 
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    
    <ext:Window ID="UploadWindow" IconUrl="~/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" Title="上传文件"
        CloseAction="HidePostBack" EnableIFrame="true" IFrameUrl="about:blank"
        Height="351px" Width="650px">
    </ext:Window>
    
    <ext:Window ID="DocEditorWindow" IconUrl="~/images/16/11.png" runat="server" Popup="false"
        IsModal="true" Target="Parent" Title="文件"
        CloseAction="HidePostBack" EnableIFrame="true" IFrameUrl="about:blank"
        Height="600px" Width="800px">
    </ext:Window>
    </form>
</body>
</html>
